package com.corpcredit.model;

// Generated Jul 22, 2008 11:56:54 PM by Hibernate Tools 3.2.0.CR1

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Version;

/**
 * Hyfx generated by hbm2java
 */
@Entity
@Table(name = "hyfx")
public class Hyfx implements java.io.Serializable
{

    private Long id;
    private int version;
    private Hyfl hyfl;
    private String username;
    private String operation;
    private Date optdate;
    private Long nj;
    private String hyjjhyhj;
    private String hyjyqkfx;
    private String hyxgfx;
    private String hyfzfx;
    private String hytzfxfx;

    public Hyfx()
    {
    }

    public Hyfx( Long id )
    {
        this.id = id;
    }

    public Hyfx( Long id,
                 Hyfl hyfl,
                 String username,
                 String operation,
                 Date optdate,
                 Long nj,
                 String hyjjhyhj,
                 String hyjyqkfx,
                 String hyxgfx,
                 String hyfzfx,
                 String hytzfxfx )
    {
        this.id = id;
        this.hyfl = hyfl;
        this.username = username;
        this.operation = operation;
        this.optdate = optdate;
        this.nj = nj;
        this.hyjjhyhj = hyjjhyhj;
        this.hyjyqkfx = hyjyqkfx;
        this.hyxgfx = hyxgfx;
        this.hyfzfx = hyfzfx;
        this.hytzfxfx = hytzfxfx;
    }

    @Id
    @Column(name = "ID", unique = true, nullable = false)
    @GeneratedValue(strategy=GenerationType.AUTO)
    public Long getId()
    {
        return this.id;
    }

    public void setId( Long id )
    {
        this.id = id;
    }

    @Version
    @Column(name = "version", nullable = false)
    public int getVersion()
    {
        return this.version;
    }

    public void setVersion( int version )
    {
        this.version = version;
    }

    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "hyf_ID")
    public Hyfl getHyfl()
    {
        return this.hyfl;
    }

    public void setHyfl( Hyfl hyfl )
    {
        this.hyfl = hyfl;
    }

    @Column(name = "username", length = 50)
    public String getUsername()
    {
        return this.username;
    }

    public void setUsername( String username )
    {
        this.username = username;
    }

    @Column(name = "operation", length = 20)
    public String getOperation()
    {
        return this.operation;
    }

    public void setOperation( String operation )
    {
        this.operation = operation;
    }

    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "optdate", length = 23)
    public Date getOptdate()
    {
        return this.optdate;
    }

    public void setOptdate( Date optdate )
    {
        this.optdate = optdate;
    }

    @Column(name = "nj")
    public Long getNj()
    {
        return this.nj;
    }

    public void setNj( Long nj )
    {
        this.nj = nj;
    }

    @Column(name = "hyjjhyhj", length = 1024)
    public String getHyjjhyhj()
    {
        return this.hyjjhyhj;
    }

    public void setHyjjhyhj( String hyjjhyhj )
    {
        this.hyjjhyhj = hyjjhyhj;
    }

    @Column(name = "hyjyqkfx", length = 1024)
    public String getHyjyqkfx()
    {
        return this.hyjyqkfx;
    }

    public void setHyjyqkfx( String hyjyqkfx )
    {
        this.hyjyqkfx = hyjyqkfx;
    }

    @Column(name = "hyxgfx", length = 1024)
    public String getHyxgfx()
    {
        return this.hyxgfx;
    }

    public void setHyxgfx( String hyxgfx )
    {
        this.hyxgfx = hyxgfx;
    }

    @Column(name = "hyfzfx", length = 1024)
    public String getHyfzfx()
    {
        return this.hyfzfx;
    }

    public void setHyfzfx( String hyfzfx )
    {
        this.hyfzfx = hyfzfx;
    }

    @Column(name = "hytzfxfx", length = 1024)
    public String getHytzfxfx()
    {
        return this.hytzfxfx;
    }

    public void setHytzfxfx( String hytzfxfx )
    {
        this.hytzfxfx = hytzfxfx;
    }

}
